/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Crypto.java
 *
 * Created on 22-nov-2011, 21:27:50
 */
package PWS;

import PWS.Vigenere;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.math.BigInteger;
import javax.swing.JFileChooser;

/**
 *
 * @author LBAOMELM
 */
public class Crypto extends javax.swing.JFrame implements FileFilter {

    /** Creates new form Crypto */
    public Crypto() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        fileChooser3 = new javax.swing.JFileChooser();
        fileChooser4 = new javax.swing.JFileChooser();
        fileChooser1 = new javax.swing.JFileChooser();
        fileChooser2 = new javax.swing.JFileChooser();
        fileChooser5 = new javax.swing.JFileChooser();
        fileChooser6 = new javax.swing.JFileChooser();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jTextField1 = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        Caesar_titel = new javax.swing.JLabel();
        caesarInputLabel = new javax.swing.JLabel();
        caesarInputPath = new javax.swing.JTextField();
        caesarBrowse1 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        caesarOutputPath = new javax.swing.JTextField();
        caesarBrowse2 = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        caesarEncLabel = new javax.swing.JLabel();
        caesarEncryptButton = new javax.swing.JButton();
        caesarInputLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        caesarInputPathDe = new javax.swing.JTextField();
        caesarOutputPathDe = new javax.swing.JTextField();
        caesarBrowse3 = new javax.swing.JButton();
        caesarBrowse4 = new javax.swing.JButton();
        caesarDecryptButton = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        Vigenere_Titel = new javax.swing.JLabel();
        vigenereInputLabel2 = new javax.swing.JLabel();
        vigenereInputPath1 = new javax.swing.JTextField();
        vigenereBrowse5 = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        vigenereOutputPath1 = new javax.swing.JTextField();
        vigenereBrowse6 = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JSeparator();
        vigenereEncLabel1 = new javax.swing.JLabel();
        vigenereEncryptButton1 = new javax.swing.JButton();
        vigenereInputLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        vigenereInputPathDe1 = new javax.swing.JTextField();
        vigenereOutputPathDe1 = new javax.swing.JTextField();
        vigenereBrowse7 = new javax.swing.JButton();
        vigenereBrowse8 = new javax.swing.JButton();
        vigenereDecryptButton1 = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        Pixel_titel = new javax.swing.JLabel();
        pixelInputLabel = new javax.swing.JLabel();
        pixelOutputLabel = new javax.swing.JLabel();
        pixelInputPath = new javax.swing.JTextField();
        pixelOutputPath = new javax.swing.JTextField();
        pixelBrowse1 = new javax.swing.JButton();
        pixelBrowse2 = new javax.swing.JButton();
        pixelEncryptButton = new javax.swing.JButton();
        pixelInputLabelo = new javax.swing.JLabel();
        pixelOutputLabelo = new javax.swing.JLabel();
        pixelInputPathDe = new javax.swing.JTextField();
        pixelOutputPathDe = new javax.swing.JTextField();
        pixelBrowse3 = new javax.swing.JButton();
        pixelBrowse4 = new javax.swing.JButton();
        pixelDecryptButton = new javax.swing.JButton();
        jSeparator3 = new javax.swing.JSeparator();
        jPanel5 = new javax.swing.JPanel();
        Pixel_titel1 = new javax.swing.JLabel();
        rsaInputLabel = new javax.swing.JLabel();
        rsaOutputLabel = new javax.swing.JLabel();
        rsaInputPath = new javax.swing.JTextField();
        rsaOutputPath = new javax.swing.JTextField();
        rsaBrowse1 = new javax.swing.JButton();
        rsaBrowse2 = new javax.swing.JButton();
        rsaEncryptButton = new javax.swing.JButton();
        jSeparator4 = new javax.swing.JSeparator();
        rsaInputLabelo = new javax.swing.JLabel();
        rsaOutputLabelo = new javax.swing.JLabel();
        rsaInputPathDe = new javax.swing.JTextField();
        rsaOutputPathDe = new javax.swing.JTextField();
        rsaBrowse3 = new javax.swing.JButton();
        rsaBrowse4 = new javax.swing.JButton();
        rsaDecryptButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jTextField1.setText("jTextField1");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 337, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(249, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Home", jPanel1);

        Caesar_titel.setFont(new java.awt.Font("TI-83p Mini Sans", 3, 36));
        Caesar_titel.setText("Caesar");

        caesarInputLabel.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        caesarInputLabel.setText("File:");

        caesarInputPath.setText("Path...");

        caesarBrowse1.setText("Browse...");
        caesarBrowse1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                caesarBrowse1ActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        jLabel1.setText("Output:");

        caesarOutputPath.setText("Output path...");

        caesarBrowse2.setText("Browse...");
        caesarBrowse2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                caesarBrowse2ActionPerformed(evt);
            }
        });

        caesarEncryptButton.setText("Encrypt!");
        caesarEncryptButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                caesarEncryptButtonActionPerformed(evt);
            }
        });

        caesarInputLabel1.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        caesarInputLabel1.setText("File:");

        jLabel2.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        jLabel2.setText("Output:");

        caesarInputPathDe.setText("Path...");

        caesarOutputPathDe.setText("Output path...");

        caesarBrowse3.setText("Browse...");
        caesarBrowse3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                caesarBrowse3ActionPerformed(evt);
            }
        });

        caesarBrowse4.setText("Browse...");
        caesarBrowse4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                caesarBrowse4ActionPerformed(evt);
            }
        });

        caesarDecryptButton.setText("Decrypt!");
        caesarDecryptButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                caesarDecryptButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(153, 153, 153)
                        .addComponent(Caesar_titel, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE)
                            .addComponent(caesarInputLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(caesarOutputPath, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
                            .addComponent(caesarInputPath, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
                            .addComponent(caesarEncLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE))
                        .addGap(10, 10, 10)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(caesarBrowse1)
                            .addComponent(caesarBrowse2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(caesarEncryptButton)
                .addGap(111, 111, 111))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 392, Short.MAX_VALUE)
                .addGap(194, 194, 194))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 66, Short.MAX_VALUE)
                    .addComponent(caesarInputLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(caesarOutputPathDe, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
                    .addComponent(caesarInputPathDe, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE))
                .addGap(10, 10, 10)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(caesarBrowse3)
                    .addComponent(caesarBrowse4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(caesarDecryptButton)
                .addGap(109, 109, 109))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(Caesar_titel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(35, 35, 35)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(caesarInputLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caesarInputPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caesarBrowse1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(caesarOutputPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caesarBrowse2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(caesarEncLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(caesarEncryptButton, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12)))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(caesarInputLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caesarInputPathDe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caesarBrowse3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(caesarOutputPathDe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caesarBrowse4)))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(16, 16, 16)
                        .addComponent(caesarDecryptButton, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(95, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Caesar", jPanel2);

        Vigenere_Titel.setFont(new java.awt.Font("TI-83p Mini Sans", 3, 36));
        Vigenere_Titel.setText("Vigenère");

        vigenereInputLabel2.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        vigenereInputLabel2.setText("File:");

        vigenereInputPath1.setText("Path...");

        vigenereBrowse5.setText("Browse...");
        vigenereBrowse5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vigenereBrowse5ActionPerformed(evt);
            }
        });

        jLabel3.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        jLabel3.setText("Output:");

        vigenereOutputPath1.setText("Output path...");

        vigenereBrowse6.setText("Browse...");
        vigenereBrowse6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vigenereBrowse6ActionPerformed(evt);
            }
        });

        vigenereEncryptButton1.setText("Encrypt!");
        vigenereEncryptButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vigenereEncryptButton1ActionPerformed(evt);
            }
        });

        vigenereInputLabel3.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        vigenereInputLabel3.setText("File:");

        jLabel4.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        jLabel4.setText("Output:");

        vigenereInputPathDe1.setText("Path...");

        vigenereOutputPathDe1.setText("Output path...");

        vigenereBrowse7.setText("Browse...");
        vigenereBrowse7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vigenereBrowse7ActionPerformed(evt);
            }
        });

        vigenereBrowse8.setText("Browse...");
        vigenereBrowse8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vigenereBrowse8ActionPerformed(evt);
            }
        });

        vigenereDecryptButton1.setText("Decrypt!");
        vigenereDecryptButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vigenereDecryptButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 392, Short.MAX_VALUE)
                .addGap(194, 194, 194))
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 66, Short.MAX_VALUE)
                    .addComponent(vigenereInputLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(vigenereOutputPathDe1, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
                    .addComponent(vigenereInputPathDe1, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE))
                .addGap(10, 10, 10)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(vigenereBrowse7)
                    .addComponent(vigenereBrowse8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(vigenereDecryptButton1)
                .addGap(109, 109, 109))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE)
                    .addComponent(vigenereInputLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(vigenereOutputPath1, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
                    .addComponent(vigenereInputPath1, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
                    .addComponent(vigenereEncLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE))
                .addGap(10, 10, 10)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(vigenereBrowse5)
                    .addComponent(vigenereBrowse6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(vigenereEncryptButton1)
                .addGap(111, 111, 111))
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(169, 169, 169)
                .addComponent(Vigenere_Titel, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(208, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(Vigenere_Titel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(35, 35, 35)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(vigenereInputLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(vigenereInputPath1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(vigenereBrowse5))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(vigenereOutputPath1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(vigenereBrowse6))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(vigenereEncLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(vigenereEncryptButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12)))
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(vigenereInputLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(vigenereInputPathDe1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(vigenereBrowse7))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(vigenereOutputPathDe1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(vigenereBrowse8)))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(16, 16, 16)
                        .addComponent(vigenereDecryptButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(95, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Vigenère", jPanel4);

        Pixel_titel.setFont(new java.awt.Font("TI-83p Mini Sans", 3, 36)); // NOI18N
        Pixel_titel.setText("Pixel changer");

        pixelInputLabel.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        pixelInputLabel.setText("File:");

        pixelOutputLabel.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        pixelOutputLabel.setText("Output:");

        pixelInputPath.setText("Path...");
        pixelInputPath.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pixelInputPathActionPerformed(evt);
            }
        });

        pixelOutputPath.setText("Output path...");

        pixelBrowse1.setText("Browse...");
        pixelBrowse1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pixelBrowse1ActionPerformed(evt);
            }
        });

        pixelBrowse2.setText("Browse...");
        pixelBrowse2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pixelBrowse2ActionPerformed(evt);
            }
        });

        pixelEncryptButton.setText("Encrypt!");
        pixelEncryptButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pixelEncryptButtonActionPerformed(evt);
            }
        });

        pixelInputLabelo.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        pixelInputLabelo.setText("File:");

        pixelOutputLabelo.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14));
        pixelOutputLabelo.setText("Output:");

        pixelInputPathDe.setText("Path...");

        pixelOutputPathDe.setText("Output path...");

        pixelBrowse3.setText("Browse...");
        pixelBrowse3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pixelBrowse3ActionPerformed(evt);
            }
        });

        pixelBrowse4.setText("Browse...");
        pixelBrowse4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pixelBrowse4ActionPerformed(evt);
            }
        });

        pixelDecryptButton.setText("Decrypt!");
        pixelDecryptButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pixelDecryptButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(121, 121, 121)
                .addComponent(Pixel_titel, javax.swing.GroupLayout.PREFERRED_SIZE, 313, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(162, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pixelInputLabelo, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pixelOutputLabelo, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(pixelOutputPathDe, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(pixelInputPathDe, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 224, Short.MAX_VALUE))
                        .addGap(18, 18, Short.MAX_VALUE)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(pixelBrowse4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(pixelBrowse3, javax.swing.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(pixelDecryptButton))
                    .addComponent(jSeparator3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pixelInputLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pixelOutputLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pixelInputPath, javax.swing.GroupLayout.DEFAULT_SIZE, 224, Short.MAX_VALUE)
                            .addComponent(pixelOutputPath, javax.swing.GroupLayout.DEFAULT_SIZE, 224, Short.MAX_VALUE))
                        .addGap(20, 20, 20)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(pixelBrowse2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(pixelBrowse1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(pixelEncryptButton)))
                .addGap(112, 112, 112))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Pixel_titel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(pixelInputLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pixelBrowse1)
                            .addComponent(pixelInputPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(pixelOutputLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pixelBrowse2)
                            .addComponent(pixelOutputPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addComponent(pixelEncryptButton, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(14, 14, 14)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(pixelInputLabelo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pixelInputPathDe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pixelBrowse3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(pixelOutputLabelo, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pixelOutputPathDe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pixelBrowse4)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(pixelDecryptButton, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(84, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Pixel changer", jPanel3);

        Pixel_titel1.setFont(new java.awt.Font("TI-83p Mini Sans", 3, 36)); // NOI18N
        Pixel_titel1.setText("         RSA");

        rsaInputLabel.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14)); // NOI18N
        rsaInputLabel.setText("File:");

        rsaOutputLabel.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14)); // NOI18N
        rsaOutputLabel.setText("Output:");

        rsaInputPath.setText("Path...");
        rsaInputPath.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rsaInputPathActionPerformed(evt);
            }
        });

        rsaOutputPath.setText("Output path...");

        rsaBrowse1.setText("Browse...");
        rsaBrowse1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rsaBrowse1ActionPerformed(evt);
            }
        });

        rsaBrowse2.setText("Browse...");
        rsaBrowse2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rsaBrowse2ActionPerformed(evt);
            }
        });

        rsaEncryptButton.setText("Encrypt!");
        rsaEncryptButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rsaEncryptButtonActionPerformed(evt);
            }
        });

        rsaInputLabelo.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14)); // NOI18N
        rsaInputLabelo.setText("File:");

        rsaOutputLabelo.setFont(new java.awt.Font("TI-83p Mini Sans", 1, 14)); // NOI18N
        rsaOutputLabelo.setText("Output:");

        rsaInputPathDe.setText("Path...");

        rsaOutputPathDe.setText("Output path...");

        rsaBrowse3.setText("Browse...");
        rsaBrowse3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rsaBrowse3ActionPerformed(evt);
            }
        });

        rsaBrowse4.setText("Browse...");
        rsaBrowse4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rsaBrowse4ActionPerformed(evt);
            }
        });

        rsaDecryptButton.setText("Decrypt!");
        rsaDecryptButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rsaDecryptButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 596, Short.MAX_VALUE)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(121, 121, 121)
                .addComponent(Pixel_titel1, javax.swing.GroupLayout.PREFERRED_SIZE, 313, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(162, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rsaInputLabelo, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rsaOutputLabelo, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(rsaOutputPathDe, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(rsaInputPathDe, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 224, Short.MAX_VALUE))
                        .addGap(18, 18, Short.MAX_VALUE)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(rsaBrowse4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(rsaBrowse3, javax.swing.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(rsaDecryptButton, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rsaInputLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rsaOutputLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rsaInputPath, javax.swing.GroupLayout.DEFAULT_SIZE, 224, Short.MAX_VALUE)
                            .addComponent(rsaOutputPath, javax.swing.GroupLayout.DEFAULT_SIZE, 224, Short.MAX_VALUE))
                        .addGap(20, 20, 20)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(rsaBrowse2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(rsaBrowse1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rsaEncryptButton)))
                .addGap(112, 112, 112))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 331, Short.MAX_VALUE)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Pixel_titel1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(rsaInputLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rsaBrowse1)
                            .addComponent(rsaInputPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(rsaOutputLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rsaBrowse2)
                            .addComponent(rsaOutputPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addComponent(rsaEncryptButton, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(14, 14, 14)
                .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(rsaInputLabelo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rsaInputPathDe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rsaBrowse3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(rsaOutputLabelo, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rsaOutputPathDe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rsaBrowse4)))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addComponent(rsaDecryptButton, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(84, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("tab5", jPanel5);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 601, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(403, 403, 403))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void vigenereDecryptButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vigenereDecryptButton1ActionPerformed
        if (evt.getSource() == vigenereDecryptButton1) {
            String dec = readFile(vigenereInputPathDe1.getText());
            System.out.println("dec: " + dec);
            String dec2 = dec.replaceAll("\\s+", "(").replaceAll("\\(", " ").replace(" ", "").replaceAll("[\\r\\n]", "");
            System.out.println("dec2: " + dec2);
            Vigenere decrypt = new Vigenere(dec2, "hoi");
            System.out.println("3: " + decrypt.decrypt());
            writeFile(decrypt.decrypt(), vigenereOutputPathDe1.getText());
        }
}//GEN-LAST:event_vigenereDecryptButton1ActionPerformed

    private void vigenereBrowse8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vigenereBrowse8ActionPerformed
        JFileChooser fc = fileChooser4;
        if (evt.getSource() == vigenereBrowse8) {
            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            int returnVal = fc.showSaveDialog(Crypto.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String file = fc.getSelectedFile().getPath();
                //This is where a real application would open the file.
                vigenereOutputPathDe1.setText(file + "\\" + "DEC.txt");
            } else {
                vigenereOutputPathDe1.setText("Open command cancelled by user.");
            }
        }
}//GEN-LAST:event_vigenereBrowse8ActionPerformed

    private void vigenereBrowse7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vigenereBrowse7ActionPerformed
        JFileChooser fc = fileChooser4;
        if (evt.getSource() == vigenereBrowse7) {
            ExtensionFileFilter jarFilter = new ExtensionFileFilter(
                    new String("txt"), ".txt Files");
            fc.addChoosableFileFilter(jarFilter);
            int returnVal = fc.showOpenDialog(Crypto.this);

            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file = fc.getSelectedFile();
                //This is where a real application would open the file.
                vigenereInputPathDe1.setText("" + file);
            } else {
                vigenereInputPathDe1.setText("Open command cancelled by user.");
            }
        }
}//GEN-LAST:event_vigenereBrowse7ActionPerformed

    private void vigenereEncryptButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vigenereEncryptButton1ActionPerformed
        if (evt.getSource() == vigenereEncryptButton1) {
            String enc = readFile(vigenereInputPath1.getText());
            String enc2 = enc.replaceAll("\\s+", "(").replaceAll("\\(", " ");
            Vigenere e = new Vigenere(enc2, "hoi");
            String encrypted = e.encrypt();
            writeFile(encrypted, vigenereOutputPath1.getText());
        }
}//GEN-LAST:event_vigenereEncryptButton1ActionPerformed

    private void vigenereBrowse6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vigenereBrowse6ActionPerformed
        JFileChooser fc = fileChooser3;
        if (evt.getSource() == vigenereBrowse6) {
            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            int returnVal = fc.showSaveDialog(Crypto.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String file = fc.getSelectedFile().getPath();
                vigenereOutputPath1.setText(file + "\\" + "ENC.txt");
            } else {
                vigenereOutputPath1.setText("Open command cancelled by user.");
            }
        }
}//GEN-LAST:event_vigenereBrowse6ActionPerformed

    private void vigenereBrowse5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vigenereBrowse5ActionPerformed
        JFileChooser fc = fileChooser3;
        if (evt.getSource() == vigenereBrowse5) {
            ExtensionFileFilter jarFilter = new ExtensionFileFilter(
                    new String("txt"), ".txt Files");
            fc.addChoosableFileFilter(jarFilter);
            int returnVal = fc.showOpenDialog(Crypto.this);

            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file = fc.getSelectedFile();
                //This is where a real application would open the file.
                vigenereInputPath1.setText("" + file);
            } else {
                vigenereInputPath1.setText("Open command cancelled by user.");
            }
        }}//GEN-LAST:event_vigenereBrowse5ActionPerformed

    private void caesarDecryptButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_caesarDecryptButtonActionPerformed
        if (evt.getSource() == caesarDecryptButton) {
            String dec = readFile(caesarInputPathDe.getText());
            String dec2 = dec.replaceAll("\\s+", "(").replaceAll("\\(", " ");
            Caesar encrypt = new Caesar(dec2, 6);
            String decrypted = encrypt.decrypt();
            writeFile(decrypted, caesarOutputPathDe.getText());
        }
}//GEN-LAST:event_caesarDecryptButtonActionPerformed

    private void caesarBrowse4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_caesarBrowse4ActionPerformed
        JFileChooser fc = fileChooser2;
        if (evt.getSource() == caesarBrowse4) {
            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            int returnVal = fc.showSaveDialog(Crypto.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String file = fc.getSelectedFile().getPath();
                //This is where a real application would open the file.
                caesarOutputPathDe.setText(file + "\\" + "DEC.txt");
            } else {
                caesarOutputPathDe.setText("Open command cancelled by user.");
            }
        }
}//GEN-LAST:event_caesarBrowse4ActionPerformed

    private void caesarBrowse3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_caesarBrowse3ActionPerformed
        JFileChooser fc = fileChooser2;
        if (evt.getSource() == caesarBrowse3) {
            ExtensionFileFilter jarFilter = new ExtensionFileFilter(
                    new String("txt"), ".txt Files");
            fc.addChoosableFileFilter(jarFilter);
            int returnVal = fc.showOpenDialog(Crypto.this);

            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file = fc.getSelectedFile();
                //This is where a real application would open the file.
                caesarInputPathDe.setText("" + file);
            } else {
                caesarInputPathDe.setText("Open command cancelled by user.");
            }
        }
}//GEN-LAST:event_caesarBrowse3ActionPerformed

    private void caesarEncryptButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_caesarEncryptButtonActionPerformed
        if (evt.getSource() == caesarEncryptButton) {
            String enc = readFile(caesarInputPath.getText());
            String enc2 = enc.replaceAll("\\s+", "(").replaceAll("\\(", " ");
            Caesar encrypt = new Caesar(enc2, 6);
            String encrypted = encrypt.encrypt();
            writeFile(encrypted, caesarOutputPath.getText());
        }
}//GEN-LAST:event_caesarEncryptButtonActionPerformed

    private void caesarBrowse2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_caesarBrowse2ActionPerformed
        JFileChooser fc = fileChooser1;
        if (evt.getSource() == caesarBrowse2) {
            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            int returnVal = fc.showSaveDialog(Crypto.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String file = fc.getSelectedFile().getPath();
                caesarOutputPath.setText(file + "\\" + "ENC.txt");
            } else {
                caesarOutputPath.setText("Open command cancelled by user.");
            }
        }
}//GEN-LAST:event_caesarBrowse2ActionPerformed

    private void caesarBrowse1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_caesarBrowse1ActionPerformed
        JFileChooser fc = fileChooser1;

        if (evt.getSource() == caesarBrowse1) {
            ExtensionFileFilter jarFilter = new ExtensionFileFilter(
                    new String("txt"), ".txt Files");
            fc.addChoosableFileFilter(jarFilter);
            int returnVal = fc.showOpenDialog(Crypto.this);

            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file = fc.getSelectedFile();
                //This is where a real application would open the file.
                caesarInputPath.setText("" + file);
            } else {
                caesarInputPath.setText("Open command cancelled by user.");
            }
        }
}//GEN-LAST:event_caesarBrowse1ActionPerformed

    private void pixelBrowse1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pixelBrowse1ActionPerformed
        JFileChooser fc = fileChooser5;

        if (evt.getSource() == pixelBrowse1) {
            //ExtensionFileFilter jarFilter = new ExtensionFileFilter(
            //        new String("txt"), ".txt Files");
            //fc.addChoosableFileFilter(jarFilter);
            int returnVal = fc.showOpenDialog(Crypto.this);

            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file = fc.getSelectedFile();
                //This is where a real application would open the file.
                pixelInputPath.setText("" + file);
            } else {
                pixelInputPath.setText("Open command cancelled by user.");
            }
        }
    }//GEN-LAST:event_pixelBrowse1ActionPerformed

    private void pixelBrowse2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pixelBrowse2ActionPerformed
        JFileChooser fc = fileChooser5;
        if (evt.getSource() == pixelBrowse2) {
            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            int returnVal = fc.showSaveDialog(Crypto.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String file = fc.getSelectedFile().getPath();
                String pip = pixelInputPath.getText();
                pixelOutputPath.setText(file + "\\" + "ENC." + pip.substring(pip.length() - 3, pip.length()));
            } else {
                pixelOutputPath.setText("Open command cancelled by user.");
            }
        }
    }//GEN-LAST:event_pixelBrowse2ActionPerformed

    private void pixelEncryptButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pixelEncryptButtonActionPerformed
        if (evt.getSource() == pixelEncryptButton) {
            PixelChanger pc = new PixelChanger(pixelInputPath.getText(), pixelOutputPath.getText(), Methods.createKeys("Mourad"));
            pc.encrypt();
        }
    }//GEN-LAST:event_pixelEncryptButtonActionPerformed

    private void pixelBrowse3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pixelBrowse3ActionPerformed
        JFileChooser fc = fileChooser6;
        if (evt.getSource() == pixelBrowse3) {
            int returnVal = fc.showOpenDialog(Crypto.this);

            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file = fc.getSelectedFile();
                pixelInputPathDe.setText("" + file);
            } else {
                pixelInputPathDe.setText("Open command cancelled by user.");
            }
        }
    }//GEN-LAST:event_pixelBrowse3ActionPerformed

    private void pixelBrowse4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pixelBrowse4ActionPerformed
        JFileChooser fc = fileChooser6;
        if (evt.getSource() == pixelBrowse4) {
            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            int returnVal = fc.showSaveDialog(Crypto.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String file = fc.getSelectedFile().getPath();
                String pip = pixelInputPathDe.getText();
                pixelOutputPathDe.setText(file + "\\" + "DEC." + pip.substring(pip.length() - 3, pip.length()));
            } else {
                pixelOutputPathDe.setText("Open command cancelled by user.");
            }
        }
    }//GEN-LAST:event_pixelBrowse4ActionPerformed

    private void pixelDecryptButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pixelDecryptButtonActionPerformed
        if (evt.getSource() == pixelDecryptButton) {
            PixelChanger pcd = new PixelChanger(pixelInputPathDe.getText(), pixelOutputPathDe.getText(), Methods.createKeys("Mourad"));
            pcd.decrypt();
        }
    }//GEN-LAST:event_pixelDecryptButtonActionPerformed

    //CRAP
    private void pixelInputPathActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pixelInputPathActionPerformed
    }//GEN-LAST:event_pixelInputPathActionPerformed

    private void rsaInputPathActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rsaInputPathActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_rsaInputPathActionPerformed

    private void rsaBrowse1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rsaBrowse1ActionPerformed
        JFileChooser fc = fileChooser5;

        if (evt.getSource() == rsaBrowse1) {
            int returnVal = fc.showOpenDialog(Crypto.this);

            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file = fc.getSelectedFile();
                //This is where a real application would open the file.
                rsaInputPath.setText("" + file);
            } else {
                rsaInputPath.setText("Open command cancelled by user.");
            }
        }
    }//GEN-LAST:event_rsaBrowse1ActionPerformed

    private void rsaBrowse2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rsaBrowse2ActionPerformed
        JFileChooser fc = fileChooser5;
        if (evt.getSource() == rsaBrowse2) {
            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            int returnVal = fc.showSaveDialog(Crypto.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String file = fc.getSelectedFile().getPath();
                String pip = rsaInputPath.getText();
                rsaOutputPath.setText(file + "\\" + "ENC." + pip.substring(pip.length() - 3, pip.length()));
            } else {
                rsaOutputPath.setText("Open command cancelled by user.");
            }
        }
    }//GEN-LAST:event_rsaBrowse2ActionPerformed

    private void rsaEncryptButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rsaEncryptButtonActionPerformed
        if (evt.getSource() == rsaEncryptButton) {
            String enc = readFile(rsaInputPath.getText());
            String enc2 = enc.replaceAll("\\s+", "(").replaceAll("\\(", " ");
            RSA RSA_enc = new RSA(499);
            String encrypted = RSA_enc.encrypt(enc2).toString();
            writeFile(encrypted, rsaOutputPath.getText());
        }
    }//GEN-LAST:event_rsaEncryptButtonActionPerformed

    private void rsaBrowse3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rsaBrowse3ActionPerformed
        JFileChooser fc = fileChooser5;

        if (evt.getSource() == rsaBrowse3) {
            int returnVal = fc.showOpenDialog(Crypto.this);

            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file = fc.getSelectedFile();
                //This is where a real application would open the file.
                rsaInputPathDe.setText("" + file);
            } else {
                rsaInputPathDe.setText("Open command cancelled by user.");
            }
        }
    }//GEN-LAST:event_rsaBrowse3ActionPerformed

    private void rsaBrowse4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rsaBrowse4ActionPerformed
        JFileChooser fc = fileChooser5;
        if (evt.getSource() == rsaBrowse4) {
            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            int returnVal = fc.showSaveDialog(Crypto.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String file = fc.getSelectedFile().getPath();
                String pip = rsaInputPathDe.getText();
                rsaOutputPathDe.setText(file + "\\" + "ENC." + pip.substring(pip.length() - 3, pip.length()));
            } else {
                rsaOutputPathDe.setText("Open command cancelled by user.");
            }
        }
    }//GEN-LAST:event_rsaBrowse4ActionPerformed

    private void rsaDecryptButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rsaDecryptButtonActionPerformed
        String enc = readFile(rsaInputPathDe.getText());
        System.out.println("Text: " + enc);
        String enc2 = enc.replaceAll("\\s+", "(").replaceAll("\\(", " ").replaceAll(" ", "").trim();
        System.out.println("enc2: " + enc2);
        BigInteger bi_enc = new BigInteger(enc2);
        RSA RSA_dec = new RSA(499);
        String decrypted = RSA_dec.decrypt(bi_enc).toString();
        System.out.println(decrypted);
        writeFile(decrypted, rsaOutputPathDe.getText());
    }//GEN-LAST:event_rsaDecryptButtonActionPerformed

    public static String readFile(String path) {
        String s = "";
        StringBuilder contents = new StringBuilder();
        File file = new File(path);
        FileInputStream fis = null;
        BufferedInputStream bis = null;
        DataInputStream dis = null;

        try {
            fis = new FileInputStream(file);
            bis = new BufferedInputStream(fis);
            dis = new DataInputStream(bis);

            while (dis.available() != 0) {
                s = dis.readLine();
                contents.append(s);
                contents.append(System.getProperty("line.separator"));
            }

            fis.close();
            bis.close();
            dis.close();

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return contents.toString();
    }

    /**
     * Prints some data to a file
     */
    public static void writeFile(String s, String filename) {

        BufferedOutputStream bufferedOutput = null;

        try {

            //Construct the BufferedOutputStream object
            bufferedOutput = new BufferedOutputStream(new FileOutputStream(filename));

            //Start writing to the output stream
            bufferedOutput.write(s.getBytes());
            //bufferedOutput.write("\n".getBytes());


        } catch (FileNotFoundException ex) {
            ex.printStackTrace();
        } catch (IOException ex) {
            ex.printStackTrace();
        } finally {
            //Close the BufferedOutputStream
            try {
                if (bufferedOutput != null) {
                    bufferedOutput.flush();
                    bufferedOutput.close();
                }
            } catch (IOException ex) {
                ex.printStackTrace();
            }
        }
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Crypto().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Caesar_titel;
    private javax.swing.JLabel Pixel_titel;
    private javax.swing.JLabel Pixel_titel1;
    private javax.swing.JLabel Vigenere_Titel;
    private javax.swing.JButton caesarBrowse1;
    private javax.swing.JButton caesarBrowse2;
    private javax.swing.JButton caesarBrowse3;
    private javax.swing.JButton caesarBrowse4;
    private javax.swing.JButton caesarDecryptButton;
    private javax.swing.JLabel caesarEncLabel;
    private javax.swing.JButton caesarEncryptButton;
    private javax.swing.JLabel caesarInputLabel;
    private javax.swing.JLabel caesarInputLabel1;
    private javax.swing.JTextField caesarInputPath;
    private javax.swing.JTextField caesarInputPathDe;
    private javax.swing.JTextField caesarOutputPath;
    private javax.swing.JTextField caesarOutputPathDe;
    private javax.swing.JFileChooser fileChooser1;
    private javax.swing.JFileChooser fileChooser2;
    private javax.swing.JFileChooser fileChooser3;
    private javax.swing.JFileChooser fileChooser4;
    private javax.swing.JFileChooser fileChooser5;
    private javax.swing.JFileChooser fileChooser6;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JButton pixelBrowse1;
    private javax.swing.JButton pixelBrowse2;
    private javax.swing.JButton pixelBrowse3;
    private javax.swing.JButton pixelBrowse4;
    private javax.swing.JButton pixelDecryptButton;
    private javax.swing.JButton pixelEncryptButton;
    private javax.swing.JLabel pixelInputLabel;
    private javax.swing.JLabel pixelInputLabelo;
    private javax.swing.JTextField pixelInputPath;
    private javax.swing.JTextField pixelInputPathDe;
    private javax.swing.JLabel pixelOutputLabel;
    private javax.swing.JLabel pixelOutputLabelo;
    private javax.swing.JTextField pixelOutputPath;
    private javax.swing.JTextField pixelOutputPathDe;
    private javax.swing.JButton rsaBrowse1;
    private javax.swing.JButton rsaBrowse2;
    private javax.swing.JButton rsaBrowse3;
    private javax.swing.JButton rsaBrowse4;
    private javax.swing.JButton rsaDecryptButton;
    private javax.swing.JButton rsaEncryptButton;
    private javax.swing.JLabel rsaInputLabel;
    private javax.swing.JLabel rsaInputLabelo;
    private javax.swing.JTextField rsaInputPath;
    private javax.swing.JTextField rsaInputPathDe;
    private javax.swing.JLabel rsaOutputLabel;
    private javax.swing.JLabel rsaOutputLabelo;
    private javax.swing.JTextField rsaOutputPath;
    private javax.swing.JTextField rsaOutputPathDe;
    private javax.swing.JButton vigenereBrowse5;
    private javax.swing.JButton vigenereBrowse6;
    private javax.swing.JButton vigenereBrowse7;
    private javax.swing.JButton vigenereBrowse8;
    private javax.swing.JButton vigenereDecryptButton1;
    private javax.swing.JLabel vigenereEncLabel1;
    private javax.swing.JButton vigenereEncryptButton1;
    private javax.swing.JLabel vigenereInputLabel2;
    private javax.swing.JLabel vigenereInputLabel3;
    private javax.swing.JTextField vigenereInputPath1;
    private javax.swing.JTextField vigenereInputPathDe1;
    private javax.swing.JTextField vigenereOutputPath1;
    private javax.swing.JTextField vigenereOutputPathDe1;
    // End of variables declaration//GEN-END:variables

    public boolean accept(File pathname) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
